/*
 * Copyright (C) 2013 Andreas Stuetz <andreas.stuetz@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.astuetz.viewpager.extensions.sample;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.android.volley.toolbox.ImageLoader;
import com.voole.mm.RequestManager;
import com.voole.wideget.VImageView;

public class CardFragment2 extends Fragment {


	public static CardFragment2 newInstance(int position) {
		CardFragment2 f = new CardFragment2();
		return f;
	}

	ImageLoader imageLoader = null;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 imageLoader = RequestManager.getImageLoader();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View mView = inflater.inflate(R.layout.fragment_tab2, container, false);
		return mView;
	}
	View rootView;
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		rootView = getView();
		VImageView image1 = (VImageView)rootView.findViewById(R.id.channel1);
		VImageView image2 = (VImageView)rootView.findViewById(R.id.channel2);
		VImageView image3 = (VImageView)rootView.findViewById(R.id.channel3);
		VImageView image4 = (VImageView)rootView.findViewById(R.id.channel4);
		VImageView image5 = (VImageView)rootView.findViewById(R.id.channel5);
		VImageView image6 = (VImageView)rootView.findViewById(R.id.channel6);
		VImageView image7 = (VImageView)rootView.findViewById(R.id.channel7);
		
		image1.setImageUrl("http://imgstbox.voole.com//img/pic/2014/05/09/1000/201405091635261000zeb3a.png",
				imageLoader);
		image2.setImageUrl("http://imgstbox.voole.com//img/pic/2014/05/09/1000/201405091636091000z52f7.png",
				imageLoader);
		image3.setImageUrl("http://imgstbox.voole.com//img/pic/2014/05/09/1000/201405091636431000z11f6.png",
				imageLoader);
		image4.setImageUrl("http://imgstbox.voole.com//img/pic/2014/05/09/1000/201405091637131000z7371.png",
				imageLoader);
		image5.setImageUrl("http://imgstbox.voole.com//img/pic/2014/05/09/1000/201405091637501000zecc8.png",
				imageLoader);
		image6.setImageUrl("http://imgstbox.voole.com//img/pic/2014/05/09/1000/201405091638181000z8d36.png",
				imageLoader);
		image7.setImageUrl("http://imgstbox.voole.com//img/pic/2014/05/09/1000/201405091638501000zcf46.png",
				imageLoader);
	}

}